<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="utf-8">
        <title>朝阳市地图</title>
        <link rel="icon" href="ico/cymap.png">
        <style>
            .map{
                width:device-width;
                height:auto;
                display:flex;
                align-items:center;
                justify-content:center;
            }

            .map img{
                width:100%;
                height:auto;
            }

            .by {
                background-color:black;
                color:white;
                clear:both;
                text-align:center;
                padding:5px;
            }
        </style>
    </head>
    <body>
        <div class="map">
            <img src="map/chaoyangshiditu.jpg" alt="朝阳市地图"/>
        </div>
        <div class="by">
            <p>
                <span>地图来源</span>
                <span><a href="https://www.tianditu.gov.cn/" style="color:white">国家地理信息公共服务平台天地图</a></span>
            </p>
        </div>
        <script type="text/javascript">
            var ua = navigator.userAgent.toLowerCase();
            var isWeixin = ua.indexOf('micromessenger') != -1;
            var isAndroid = ua.indexOf('android') != -1;
            var isIos = (ua.indexOf('iphone') != -1) || (ua.indexOf('ipad') != -1);
            if (!isWeixin) {
                document.head.innerHTML = '<title>抱歉，出错了</title><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=0"><link rel="stylesheet" type="text/css" href="https://res.wx.qq.com/open/libs/weui/0.4.1/weui.css" rel="external nofollow" >';
                document.body.innerHTML = '<div class="weui_msg"><div class="weui_icon_area"><i class="weui_icon_info weui_icon_msg"></i></div><div class="weui_text_area"><h4 class="weui_msg_title">请在微信客户端打开链接</h4></div></div>';
            }
        </script>
    </body>
</html>